<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
	<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
	<title>后台管理</title>
</head>

<body class="body_ifm">
	<div class="infoboxp"> 
		
		<div class="admin_new_tip">
			<a href="javascript:;" class="admin_new_tip_close"></a>
			<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
			<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
			<div class="admin_new_tip_list_cont">
				<div class="admin_new_tip_list">页面设置功能：实现CRM部分相关配置！</div>
			</div>
		</div>
		
		<div class="clear"></div>
		
		<div style="height:10px;"></div>

		<div class="main_tag">
 		    
		    <div class="tag_box">
		   		<div>
		        	<form method="post" class="layui-form">
		          		<table width="100%" class="table_form">
		          		
				    		<tr>
				              	<th width="220" bgcolor="#f0f6fb"><span class="admin_bold">参数说明</span></th>
				              	<td bgcolor="#f0f6fb"><span class="admin_bold">参数值</span></td>
				            </tr>
				            
				            <tr>
		              			
		              			<th width="220">业务员轮值方式：</th>
					       		<td>
					              	<div class="layui-form-item">
					                  	<div class="layui-input-block">
					                    	<div class="layui-input-inline">
					                    		<input name="sy_crm_duty" value="1" title="时间" 	{yun:}if $config.sy_crm_duty=="1"{/yun}checked{yun:}/if{/yun} type="radio"/>
								            	<input name="sy_crm_duty" value="2" title="区域" {yun:}if $config.sy_crm_duty=="2"{/yun}checked{yun:}/if{/yun} type="radio"/>
					                    	</div>
					                    	<span class="admin_web_tip"> 提示：1、时间分配 - 按照周一至周末值班人员顺序分配；2、区域分配 - 按照人员指定区域划分顺序分配(仅针对企业分配)</span>
					                  	</div>
					            	</div>
					    		</td>
		            		</tr>
		            	
		            		<tr>
		              			<th width="220">未成交跟进期限：</th>
					       		<td>
					              	<div class="layui-form-item">
					                  	<div class="layui-input-block">
					                    	<div class="layui-input-inline">
					                      		<input name="sy_crm_follow_deadline" id="sy_crm_follow_deadline" placeholder="请输入" autocomplete="off" class="layui-input" type="text" value="{yun:}$config.sy_crm_follow_deadline{/yun}" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" />
					                    	</div>天
					                    	<span class="admin_web_tip"> 提示：业务员领取客户，未达成订单交易，进行跟进联系上限时间 </span>
					                  	</div>
					            	</div>
					    		</td>
		            		</tr>
		            		 
		            		<tr>
 		          				<td align="left">
		                  			<input class="layui-btn layui-btn-normal" id="config" lay-submit="" lay-filter="config" type="button" name="config" value="提交" />&nbsp;&nbsp;
		                  			<input class="layui-btn layui-btn-normal" type="reset" value="重置" />
		                  		</td>
		            		</tr>
		          		</table>
		          		
		          		<input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
		          		
		        	</form>
		      	</div>
		    </div>	
		</div>
	</div>


	<script type="text/javascript">
	
	  	layui.use(['layer', 'form'], function(){
	    	var layer = layui.layer
	    		,form = layui.form
	    		,$ = layui.$;
	  	});
	
	  	$(function(){
	      	$("#config").click(function(){
				loadlayer();
	     		$.post("index.php?m=crm_set&c=save",{
	          		config : $("#config").val(),
	          		sy_crm_duty : $("input[name=sy_crm_duty]:checked").val(), 
	          		sy_crm_follow_deadline : $("#sy_crm_follow_deadline").val(), 
	          		pytoken : $("#pytoken").val()
	        	},function(data,textStatus){
					parent.layer.closeAll('loading');
	          		config_msg(data);
	        	});
	      	});
	    });
	</script>
</body>
</html>